<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01//EN" "http://www.w3.org/TR/html4/strict.dtd">
<html>
<head>
    <title>DOM Level 2 DocumentType Example</title>
</head>
<body>
    <script type="text/javascript">
        alert(document.doctype.publicId);
        alert(document.doctype.systemId);
    </script>
</body>
</html>